<template>
  <div class="detail-info">
    <div class="detail-info-item" v-for="item in detailInfo" :key="item.key">
      <div v-if="item.list" style="text-align: center; padding: 20px 0">
        <van-tag size="large" color="#000000" plain>
          {{ item.key }}
        </van-tag>
      </div>
      <img v-for="img in item.list" :src="img" :key="img" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'detail-info',
  props: {
    detailInfo: Array
  }
}
</script>

<style lang="less" scoped>
.key {
  text-align: center;
  font-size: 20px;
  line-height: 35px;
}
</style>
